package com.liu.service.intf;

import com.liu.entity.Admin;
import com.liu.entity.User;
import com.liu.vo.PageBean;
import com.liu.vo.R;

import javax.servlet.http.HttpSession;
import java.util.List;


public interface AdminService {
    //新增
    R save(Admin admin);
    List<Admin> select(Admin admin);
    //查询
    PageBean queryPage(int page, int limit);
    //删除
    R del(int id);
    //修改
    R update(Admin admin);
    //查询 条件
    PageBean queryPageWhere(String username, int page, int limit);
    //批量删除
    R delBatch(int[] ids);
    R login(Admin admin);
    R login(Admin admin, HttpSession session);

}
